package cn.hsa.xxx.bookData.service.impl;

import cn.hsa.xxx.bookData.bo.BookTypeBO;
import cn.hsa.xxx.api.dto.BookTypeDTO;
import cn.hsa.xxx.api.service.BookTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Slf4j
@Service
public class BookTypeServiceImpl implements BookTypeService {
    @Autowired
    private BookTypeBO bookTypeBO;

    @Override
    public BookTypeDTO add(BookTypeDTO bookTypeDTO) {
        return bookTypeBO.add(bookTypeDTO);
    }

    @Override
    public String delete(String id) {
        return bookTypeBO.delete(id);
    }

    @Override
    public BookTypeDTO get(String id) {
        return bookTypeBO.get(id);
    }

    @Override
    public String update(BookTypeDTO bookTypeDTO) {
        return bookTypeBO.update(bookTypeDTO);
    }

    @Override
    public List<BookTypeDTO> getPage(int pageNo, int pageSize) {
        return bookTypeBO.getPage(pageNo,pageSize);
    }
}
